package com.zld.smarket.result;

//响应的枚举类型
public enum ExceptionMsg {

    SUCCESS("200","操作成功"),
    FAILD("999999","操作失败"),
    ADDERROR("0001","该编号已存在"),
    OUTOFNUM("0002","库存数量不足"),
    EMPTY("0003","该仓库中无此商品"),
    OUTOFNUM2("0004","柜存数量不足");
    //alt+insert
    private String code;
    private String msg;
    ExceptionMsg(String code,String msg ) {
        this.code = code;
        this.msg  = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
